<div class="page field-section" data-page="tallyDetail" id="tallyDetail">
	<p class="location">
		当前位置:
		<label class="locationInfo"><a href="javascript:void(0)" class="deliveryNoticeList">首页</a>  &nbsp;&gt;&nbsp;理货详情
		</label>
	</p>
	<div class="page-content" id="submitContainerTallying" action="submitContainerTallying" version="v1.0">
		<div class="page-content-main">

			<div class="page-content-main-content tallyDetail_main_content">
			</div>

		</div>

		<script type="text/template" id="financeWaybillListTpl">
			{@each datas as it}
			<option value="${it.waybillNumber}">${it.waybillNumber}</option>
			{@/each}
		</script>
		<script type="text/template" id="tallyDetailTpl">
			{@each datas as it}
			<div class="line-gray"></div>
			<div class="page-content-main-content-item">
				<input type="hidden" name="tallyingId" value="${it.tallyingId}" />
				<input type="hidden" name="inventoryId" value="${it.inventoryId}" />
				<div class="title"><span class="requiredInput">*</span>箱号：
					<input type="text" name="caseNumber" value="${it.caseNumber}" isNull="1" codeName="箱号" />
				</div>
				<span><span class="requiredInput">*</span>实际理货地址：
				<input type="text" isNull="1" codeName="实际理货地址" name="tallyAddress" value="${it.tallyAddress}" />
				</span>
				<span><span class="requiredInput">*</span>运单号：
				<select class="waybillNumber" isNull="1" codeName="运单号" id="${it.waybillNumber}" name="waybillNumber"></select>
			</div>
			<div class="line-gray"></div>
			<div class="page-content-main-content-item">
				<div class="title"><b>装箱信息：</b></div>
				<div class="content">
					<span><span class="requiredInput">*</span>箱型尺寸：
					<select name="caseSize" value="${it.caseSize}">
						<option value="20GP">20GP</option>
						<option value="20HQ">20HQ</option>
						<option value="40GP">40GP</option>
						<option value="40HQ">40HQ</option>
						<option value="40RH">40RH</option>
					</select>
					</span>
					<span><span class="requiredInput">*</span>铅封号1：
					<input type="text" isNull="1" codeName="铅封号1" name="facingSlip" value="${it.facingSlip}" />
					</span>
					<span>铅封号2：<input type="text"   name="facingSlipNext" value="${it.facingSlipNext}"/></span>
				</div>
			</div>

			<div class="line-gray"></div>
			<div class="page-content-main-content-item">
				<div class="title"><b>货物清单：</b></div>
				<div class="content">
					{@each it.containerBulkstocks as that,index}
					<table class="table">
						<thead>
							<tr>
								<th>货物名称</th>
								<th>数量(${that.unit})</th>
								<th>重量(吨)</th>
								<th>体积(m<sup>3</sup>)</th>
								<th>托盘号</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>

									<input type="hidden" name="containerBulkstockId" value="${that.containerBulkstockId}" />
									<input type="hidden" name="bulkstockId" value="${that.bulkstockId}" />

									<input type="text" name="bulkstockName" class="noInput" readonly="readonly" value="${that.bulkstockName}" />
								</td>
								<td>
									<input type="text" class="arrayTally" name="quantity" value="${that.quantity}" />
								</td>
								<td>
									<input type="text" class="arrayTally" name="weight" value="${that.weight}" />
								</td>
								<td>
									<input type="text" class="arrayTally" name="volume" value="${that.volume}" />
								</td>
								<td>
									<input type="text" class="arrayTally" name="trayNumber" value="${that.trayNumber}" />
								</td>
							</tr>
							<tr>
								<td colspan="5">货物照片：
									<input type="hidden" name="filesUuid" class="bulkstockFilesUuids" value="${that.filesUuid}" />
									<p class="uploadImgP" id="uploadImgP${index}">
										<label for="uploadFile${index}" class="file"> 点击上传图片
											<input type="file" class="uploadFileInput" name="file" id="uploadFile${index}" accept=".png,.jpg,.bmp" />
										</label>
									</p>
								</td>
							</tr>
							<tr>
								<td colspan="4">
									<span class="abnormalSpan">货物异常标识：
						{@if that.abnormal===0}
						异常
						{@else}
						正常
						{@/if}
							<!--<select name="bulkstockAbnormal" value="${that.abnormal}">
								<option value="0">异常</option>
								<option value="1">正常</option>
							</select>-->
							</span>

									<span>货物异常说明：
							<textarea class="arrayTally" name="bulkstockAbnormalComment">${that.abnormalComment}</textarea>
						</span>
								</td>

							</tr>
						</tbody>
					</table>
					{@/each}
				</div>
			</div>

			<div class="page-content-main-content-item">
				<div class="title"><span class="requiredInput">*</span><b>理货前照片：</b></div>
				<div class="content">
					<input type="hidden" name="tallyPreFile" value="${it.tallyPreFile}" class="preTallyFiles" />
					<p id="uploadFilepreTallyP" class="uploadFilepreTallyP none">
						<label for="uploadFilepreTally" class="file"> 点击上传图片
							<input type="file" class="uploadFileInput1" name="file" id="uploadFilepreTally" accept=".png,.jpg,.bmp" />
						</label>
					</p>

				</div>
			</div>

			<div class="page-content-main-content-item">
				<div class="title"><span class="requiredInput">*</span><b>理货后照片：</b></div>
				<div class="content">
					<input type="hidden" name="tallySuffixFile" value="${it.tallySuffixFile}" class="suffixTallyFiles" />
					<p id="uploadFilesuffixTallyP" class="uploadFilesuffixTallyP none">
						<label for="uploadFilesuffixTally" class="file"> 点击上传图片
							<input type="file" class="uploadFileInput2" name="file" id="uploadFilesuffixTally" accept=".png,.jpg,.bmp" />
						</label>
					</p>

				</div>
			</div>

			<div class="page-content-main-content-item">
				<div class="title"><b>理货异常：</b></div>
				<div class="content">
					<span class="abnormalSpan">理货异常标注：
						{@if it.abnormal===0}
						异常
						{@else}
						正常
						{@/if}
							<!--<select name="abnormal" class="abnormal" value="${it.abnormal}">
								<option value="1">正常</option>
								<option value="0">异常</option>
							</select>-->
							</span>

					<span>理货异常说明：
							<textarea name="abnormalComment">${it.abnormalComment}</textarea>
						</span>
				</div>
			</div>
			
			
			
			{@if it.abnormal===0}
						<div class="page-content-main-content-item  abnormalDiv">
					<div class="title"><b>异常单：</b></div>
					<p>
				<span><span class="requiredInput">*</span>异常理货地点：
				<input type="text"  maxlength="255" name="tallyExAddress" value="${it.tallyExAddress}"/>
				</span>
				<span><span class="requiredInput">*</span>异常理货类型：
				{@if it.tallyExAbnormalState===0}
				未知
				{@else if it.tallyExAbnormalState===1}
				货损
				{@else if it.tallyExAbnormalState===2}
				丢失
				{@/if}
				</span>
			</p>
			<p>
				<span><span class="requiredInput">*</span>理货异常说明：
				<textarea name="tallyExRemark" class="abnormalComment"  maxlength="255"  value="${it.tallyExRemark}"></textarea>
				</span>
			</p>

			<div>
				录音文件:
				<input type="hidden"  name="tallyExSoundRecorde" id="soundRecorde" value="${it.tallyExSoundRecorde}"/>
				<p id="soundRecordeP" class="soundRecordeP none">
					<label for="uploadFileSoundRecorde1" class="file uploadFileSoundRecorde1"> 上传录音文件
						<input type="file" class="uploadFileInput2" name="file" id="uploadFileSoundRecorde1" />
					</label>
				</p>
			</div>
			<div>
				异常图片:
				<input type="hidden" name="tallyExAbnormalFile" id="abnormalFile" value="${it.tallyExAbnormalFile}"/>
				<p id="abnormalFileP" class="abnormalFileP none">
					<label for="uploadFileAbnormalFile1" class="file uploadFileAbnormalFile1"> 上传异常图片
						<input type="file" class="uploadFileInput2" name="file" id="uploadFileAbnormalFile1" accept=".png,.jpg,.bmp" />
					</label>
				</p>
			</div>
				</div>
						{@else}
						
						{@/if}
			
			{@/each}
		</script>

		<!--自理-->
		<script type="text/template" id="tallyDetailTpl2">
			<div class="line-gray"></div>
			<div class="page-content-main-content-item">
				<input type="hidden" name="tallyingId" value="" />
				<input type="hidden" name="inventoryId" value="" />
				<div class="title"><b>箱号：<input type="text"  name="caseNumber" /></b></div>
				<span>实际理货地址：<input type="text"  isNull="1" codeName="实际理货地址"  name="tallyAddress" value=""/></span>
				<span>运单号：<select class="waybillNumber"  isNull="1" codeName="物流运单号"   name="waybillNumber"></select>
				</div>
					<div class="line-gray"></div>
				<div class="page-content-main-content-item">
					<div class="title"><b>装箱信息：</b></div>
					<div class="content">
						<span>箱型尺寸：<input type="text"  name="caseSize" /></span>
				<span>铅封号1：<input type="text"  name="facingSlip" /></span>
				<span>铅封号2：<input type="text"  name="facingSlipNext" /></span>

			</div>
	</div>

	<div class="line-gray"></div>
	<div class="page-content-main-content-item">
		<div class="title"><b>货物清单：</b>
			<label class="addCommodity"></label>
		</div>

		<div class="content" id="commodityContent">
		</div>
	</div>

	<div class="page-content-main-content-item">
		<div class="title"><b>理货前照片：</b></div>
		<div class="content">
			<input type="hidden" name="tallyPreFile" class="preTallyFiles" isNull="1" codeName="理货前照片" />
			<p id="uploadFilepreTallyP" class="uploadFilepreTallyP">
				<label for="uploadFilepreTally" class="file"> 点击上传图片
					<input type="file" class="uploadFileInput1" name="file" id="uploadFilepreTally" accept=".png,.jpg,.bmp" />
				</label>
			</p>

		</div>
	</div>

	<div class="page-content-main-content-item">
		<div class="title"><b>理货后照片：</b></div>
		<div class="content">
			<input type="hidden" name="tallySuffixFile" class="suffixTallyFiles" isNull="1" codeName="理货后照片" />
			<p id="uploadFilesuffixTallyP" class="uploadFilesuffixTallyP">
				<label for="uploadFilesuffixTally" class="file"> 点击上传图片
					<input type="file" class="uploadFileInput2" name="file" id="uploadFilesuffixTally" accept=".png,.jpg,.bmp" />
				</label>
			</p>
		</div>
	</div>

	<div class="page-content-main-content-item">
		<div class="title"><b>理货异常：</b></div>
		<div class="content">
			<span>理货异常标注：
							<select name="abnormal" >
								<option value="1">正常</option>
								<option value="0">异常</option>
							</select>
							</span>

			<span>理货异常说明：
							<textarea name="abnormalComment"></textarea>
						</span>
		</div>
	</div>
	</script>
</div>
<div class="">
	<div id="submitTally" class="submitTally dialogBtn dialogHandlerBtn">提交理货</div>
</div>
</div>